﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ExaminationSys.Helper
{
    public static class SqlHelper
    {
        public static string SqlSafe(this string source)
        {
            source = source.Replace("'", "''");
            source = source.Replace(",", "");
            source = source.Replace("\"", "");
            source = source.Replace("-", "");
            source = source.Replace("+", "");
            source = source.Replace("&", "");
            source = source.Replace("<", "");
            source = source.Replace(">", "");
            source = source.Replace("<>", "");
            return source;
        }
    }
}